package com.mes.biz.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.pagehelper.PageInfo;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.core.service.BaseServiceImpl;
import com.mes.biz.mapper.BizSpaceAdjustItemMapper;
import com.mes.biz.domain.BizSpaceAdjustItem;
import com.mes.biz.service.BizSpaceAdjustItemService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 仓位调整单表体Service业务层处理
 * @author wy
 * @email wy
 * @date 2024-04-03
 */
@Service
@Transactional(readOnly = true)
public class BizSpaceAdjustItemServiceImpl extends BaseServiceImpl<BizSpaceAdjustItemMapper, BizSpaceAdjustItem> implements BizSpaceAdjustItemService {

    private static final Logger log = LoggerFactory.getLogger(BizSpaceAdjustItemServiceImpl.class);

    /**
     * 获取单条数据
     * @param bizSpaceAdjustItem 仓位调整单表体
     * @return 仓位调整单表体
     */
    @Override
    public BizSpaceAdjustItem get(BizSpaceAdjustItem bizSpaceAdjustItem) {
        BizSpaceAdjustItem dto = super.get(bizSpaceAdjustItem);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 仓位调整单表体id
     * @return 仓位调整单表体
     */
    @Override
    public BizSpaceAdjustItem get(String id) {
        BizSpaceAdjustItem dto = super.get(id);
        return dto;
    }

    /**
     * 查询仓位调整单表体列表
     * @param bizSpaceAdjustItem 仓位调整单表体
     * @return 仓位调整单表体
     */
    @Override
    public List<BizSpaceAdjustItem> findList(BizSpaceAdjustItem bizSpaceAdjustItem) {
		List<BizSpaceAdjustItem> bizSpaceAdjustItemList = super.findList(bizSpaceAdjustItem);
        return bizSpaceAdjustItemList;
    }

    /**
     * 分页查询仓位调整单表体列表
     * @param bizSpaceAdjustItem 仓位调整单表体
     * @return 仓位调整单表体
     */
    @Override
    public PageInfo<BizSpaceAdjustItem> findPage(BizSpaceAdjustItem bizSpaceAdjustItem) {
		PageInfo<BizSpaceAdjustItem> page = super.findPage(bizSpaceAdjustItem);
        return page;
    }

    /**
     * 保存仓位调整单表体
     * @param bizSpaceAdjustItem
     * @return 结果
     */
    @Override
    public boolean save(BizSpaceAdjustItem bizSpaceAdjustItem) {
        return super.save(bizSpaceAdjustItem);
    }

    /**
     * 删除仓位调整单表体信息
     * @param bizSpaceAdjustItem
     * @return 结果
     */
    @Override
    public boolean remove(BizSpaceAdjustItem bizSpaceAdjustItem) {
        return super.remove(bizSpaceAdjustItem);
    }

    /**
     * 批量删除仓位调整单表体
     * @param ids 需要删除的仓位调整单表体ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteBizSpaceAdjustItemByIds(String[] ids) {
        return mapper.deleteBizSpaceAdjustItemByIds(ids, BaseEntity.DEL_FLAG_DELETE);
    }

}
